import request from '@/utils/request'

// 查询租后回访列表
export function listDealLeaseVisit(query) {
  return request({
    url: '/leaseVisit/dealLeaseVisit/list',
    method: 'get',
    params: query
  })
}

// 查询租后回访详细
export function getDealLeaseVisit(id) {
  return request({
    url: '/leaseVisit/dealLeaseVisit/' + id,
    method: 'get'
  })
}

// 保存租后回访
export function saveDealLeaseVisit(data) {
  return request({
    url: '/leaseVisit/dealLeaseVisit/save',
    method: 'post',
    data: data
  })
}

// 删除租后回访
export function delDealLeaseVisit(id) {
  return request({
    url: '/leaseVisit/dealLeaseVisit/' + id,
    method: 'delete'
  })
}

// 导出租后回访
export function exportDealLeaseVisit(query) {
  return request({
    url: '/leaseVisit/dealLeaseVisit/export',
    method: 'get',
    params: query
  })
}

// 删除承租人情况
export function delDealTenantSituation(id) {
  return request({
    url: '/tenantSituation/dealTenantSituation/' + id,
    method: 'delete'
  })
}

// 删除担保人情况
export function delDealGuarantorSituation(id) {
  return request({
    url: '/guarantorSituation/dealGuarantorSituation/' + id,
    method: 'delete'
  })
}
